package com.xtkj.finance.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.xtkj.finance.dao.SysRoleMenuMapper;
import com.xtkj.finance.service.IRoleMenuService;

@Service("RoleMenuService")
public class IRoleMenuServiceImpl implements IRoleMenuService {

	@Autowired
	private SysRoleMenuMapper roleMenuMapper;
	
	@Transactional(isolation=Isolation.READ_COMMITTED,propagation=Propagation.REQUIRED,readOnly=false)
	public void addRoleMenu(Map<String, Object> params) {
		String [] authIds = (String[]) params.get("authIds");
		if(authIds != null && authIds.length > 0) {
			roleMenuMapper.addRoleMenu(params);
		}
	}

}
